<%@ page language="java" import="java.util.*,com.google.gson.*" pageEncoding="utf-8"%>
<!-- 店铺首页 -->
<!DOCTYPE html>
<html class="responsive-540" lang="zh-CN" >
<head>
    <meta charset="utf-8">
	<meta name="keywords" content="Bidcms,微信商城,粉丝营销,微信商城运营" />
    <meta name="description" content="Bidcms是帮助商家在微信上搭建微信商城的平台，提供店铺、商品、订单、物流、消息和客户的管理模块，同时还提供丰富的营销应用和活动插件。" />
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="cleartype" content="on">
    <!-- dns prefetch -->
    <link rel="icon" href="${webRoot}/static/v2/image/favicon.ico" />
    <title><${pagetitle}</title>
    <!-- _global -->
    <script>
	var _global =${base};
	_global.url=${url};
	_global.mp_data=${mp_data};
	_global.query_path="/show/homepage";
	_global.module="show";
	_global.controller="show_controller";
	_global.action="homepage_action";
</script>

	<% 
	JsonArray dataJson = (JsonArray)request.getAttribute("components");
	JsonObject jsonData1 = (JsonObject)dataJson.get(0);
	JsonObject jsonData2 = (JsonObject)dataJson.get(1);
	JsonArray background_images = (JsonArray)jsonData2.get("background_images");
	JsonObject background_image1 = (JsonObject)background_images.get(0);
%>
    <!-- meta viewport -->
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    <!-- CSS -->
    <link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/base.css" >
	<link rel="stylesheet" href="${webRoot}/static/v2/build_css/stylesheets/wap/projects/showcase.css" >    
	
	</head>

<body class="">
        <!-- container -->
    <div class="container ">      
<div class="content js-mini-height">  
			<div class="content-body">
				<!-- 店铺主页模板-默认 -->
				<div class="tpl-shop js-tpl-shop">
					<div class="tpl-shop-header"
						style="background-color:<%  out.write(jsonData2.get("backgroundColor").getAsString());%>; background-image: url(<% out.write(jsonData2.get("backgroundImage").getAsString());%>);">
						<div class="tpl-shop-title"><% out.write(jsonData2.get("shop_name").getAsString()) ;%></div>
						<div class="tpl-shop-avatar">
							<img src="<% out.write(jsonData2.get("avatar").getAsString());%>" alt="头像">
						</div>
					</div>
					<div class="tpl-shop-content">
						<ul class="clearfix">
							<li class="js-all-goods">
								<a href="#1">
									<span class="count"></span>
									<span class="text">全部商品</span>
								</a>
							</li>
							<li class="js-new-goods">
								<a href="#2">
									<span class="count"></span>
									<span class="text">上新商品</span>
								</a>
							</li>
							<li class="js-order">
								<a href="#3">
									<span class="count user"></span>
									<span class="text">我的订单</span>
								</a>
							</li>
						</ul>
					</div>
				</div>
				<jsp:include  page="../../global_block.jsp"/>
			</div>
			<jsp:include  page="../../global_sidebar.jsp"/>
			<jsp:include  page="../../global_shopnav.jsp"/>
</div>  
<div class="js-footer" style="min-height: 1px;">
<jsp:include  page="../../global_copyright.jsp"/>
	</div> 

</div>
    <!-- JS -->
<script src="${webRoot}/static/v2/vendor/jquery-2.0.3.min.js" ></script>
<script src="${webRoot}/static/v2/build/wap/base.js" ></script>
<script src="${webRoot}/static/v2/build/wap/swiper/main.js" ></script>
<script src="${webRoot}/static/v2/build/wap/showcase/base.js" ></script>
<div id="right-icon" class="icon-hide  no-border hide" data-count = "1">
<div class="right-icon-container clearfix" style="width: 50px">

<a id="global-cart" href="http://wap.koudaitong.com/v2/trade/cart?kdt_id=355963" class="no-text" style="background-image: url(http://static.koudaitong.com/v2/image/setting/shopping-cart/2x/s0.png);background-size: 50px 50px;background-position: center;">
<p class="right-icon-img"></p>
<p class="right-icon-txt">购物车</p>
</a>
</div>
</div>



<script src="${webRoot}/static/v2/build/wap/showcase/global_icon.js" ></script>

</body>
</html>